import Pianju from "../../views/jiangliang/Pianju.vue";
import dongtai from "../../views/jiangliang/dongtai.vue";
import shezhi from "../../views/jiangliang/shezhi.vue";
import wode from "../../views/jiangliang/wode.vue";
import xiaoanlie from "../../views/jiangliang/xiaoanlie.vue";

// import Order from "./"

// 路由配置：路径和组件的对应关系
// let routes = [...users,...books,...order,...school];
const routes = [
  // 首页
  {
    path: "/Pianju",
    name: "Pianju",
    component: () => import("../../views/jiangliang/Pianju.vue"),
  },
  // 动态
  {
    path: "/dongtai",
    name: "dongtai",
    component: () => import("../../views/jiangliang/dongtai.vue"),
  },
  // 我的
  {
    path: "/wode",
    name: "wode",
    component: () => import("../../views/jiangliang/wode.vue"),
  },
  {
    path: "/xiaoanlie",
    name: "xiaoanlie",
    component: () => import("../../views/jiangliang/xiaoanlie.vue"),
  },
  {
    path: "/shezhi",
    name: "shezhi",
    component: () => import("../../views/jiangliang/shezhi.vue"),
  },
  {
    path: "/",
    redirect: "../../views/jiangliang/Pianju.vue",
  },
];

// 创建Vue-router对象
export default new VueRouter({
  mode: "history",
  routes,
});
